I am getting these errors;
Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 134 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 135 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 130 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 143 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 129 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 147 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 171 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 128 Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at C:\Perl\Test\im.pl line 134
Which corresponds to this bit of code!
$Sheet_tmpl->Cells($trow,4)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'RTO'); $Sheet_tmpl->Cells($trow,5)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'RPO'); $Sheet_tmpl->Cells($trow,6)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'SLA'); $Sheet_tmpl->Cells($trow,7)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'Host Name'); $Sheet_tmpl->Cells($trow,8)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'Location'); $Sheet_tmpl->Cells($trow,9)->{'Value'} = "$dat +a" if ($cell_info->{$count} eq 'SAN'); $Sheet_tmpl->Cells($trow,10)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'NAS'); $Sheet_tmpl->Cells($trow,11)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'DAS'); $Sheet_tmpl->Cells($trow,12)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Current Tier'); $Sheet_tmpl->Cells($trow,13)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Allocated GB'); $Sheet_tmpl->Cells($trow,14)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Actual GB'); $Sheet_tmpl->Cells($trow,15)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Storage Raw (GB)'); $Sheet_tmpl->Cells($trow,16)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Storage Growth (% per year)'); $Sheet_tmpl->Cells($trow,17)->{'Value'} = "$da +ta" if ($cell_info->{$count} eq 'Application Type');
Any idea how can I get rid of these errors, and why did they occure? Thanks

In reply to PROPERTYPUT error in Win32::OLE by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.