nav-left cat-right
cat-right

Error in calculated field using RW_GetInternetText error after upgrade to GP 2013

Recently after upgrading reports for a client from GP 10 to GP 2013, I started getting error message for a calculated field.

Error in equation ‘XXXX’

The calculated fields was using the function RW_GetInternetText. RW_GetInternetText returns Additional Internet Information Text field as for the specified Master Type, Master ID and optional AddressID.

If you are not familiar with this function, please refer to following blog post:

http://blogs.msdn.com/b/developingfordynamicsgp/archive/2011/05/11/accessing-internet-information-from-report-writer.aspx

In GP2013, RW_GetInternetText function is changed to support getting email addresses (to, cc and bcc fields in Internet Info Window) through optional parameter IN_field. Even though this parameter is optional, however for some reason after upgrade the RW_GetInternetText starting throwing error message. Therefore, I passed 0 value for parameter IN_field to fix this issue.

Before upgrade format for calculated field was:

FUNCTION_SCRIPT(RW_GetInternetText “CMP” sInetID sAddressCode 50 1 )

After Upgrade, changed it to :

FUNCTION_SCRIPT(RW_GetInternetText “CMP” sInetID sAddressCode 50 1 0)

where sInetID and sAddressCode calculated fields passed as parameters

3 Responses to “Error in calculated field using RW_GetInternetText error after upgrade to GP 2013”

  1. [...] posted here: Error in calculated field using RW_GetInternetText error after … VN:F [1.9.22_1171]Please wait while your rating is cast…Rating: 0.0/10 (0 votes cast)VN:F [...]

Leave a Reply