Undefined variable 'customer_name'

191 views
Skip to first unread message

nas-adora...@lafarge.com

unread,
Oct 20, 2015, 10:34:19 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Hi Support team,

I have problem with my application today. FYI, this application has been GO LIVE on 1st October and there are no problem on the CAPI that has been built in the application but today suddenly the issue came out. Please refer below error message. Please help me asap since this application has been GO LIVE and user are using it now.

2015-10-20T14:25:25+0000 - Task "List all the companies name" (id: 1[0] - status: ABORTED): Error while processing <#function list_all_objects pattern collection_name index> <#assign list = list_objects(pattern,collection_name,index*1000,1000)> <#if (list?size = 1000)> <#assign list = list?eval+ list_all_objects(pattern,collection_name,index+1)> <#return list> <#else> <#return list?eval> <#assign my_pattern={}> <#assign my_collection_name = "CustomerMaster"> <#assign entries= list_all_objects(my_pattern,my_collection_name,0)> <#assign vb_customer_name=[]> <#list entries as x> <#assign vb_customer_name= vb_customer_name + [{"label":x.customer_name,"value":x.customer_name}]> {vb_customer_name} Expression x.customer_name is undefined on line 15, column 57 in List all the companies name.

Pankaj Kumar

unread,
Oct 21, 2015, 4:54:10 AM10/21/15
to Fujitsu RunMyProcess Developer Community
Hi,

From the error log, one possibility of the error might be, you are getting 0 result in the array "entries"

<#assign entries= list_all_objects(my_pattern,my_collection_name,0)> 

due to which in loop "x.customer_name" is coming undefined. Please check the values coming in "entries" or add a validation on "entries" of null and length > 0 before iertaing a loop on array.


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
=================================================
                                     Safety Our Way of Life
                            Keselamatan Amalan Hidup Kita
=================================================
Disclaimer:

By communicating with Lafarge Malaysia, you are deemed to have consented to
processing of your personal data as set out in the Lafarge Malaysia Privacy
Notice which can be viewed here
<http://www.lafarge.com.my/wps/portal/my/0_9-LegalMentions#editoEncartVide0000000000026567>
.

This email and any files transmitted with it are confidential and intended
only for the use of the person to whom it is addressed. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited. Please notify the sender immediately by email if you
have received this email by mistake and delete this email from your system.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any files for the
presence of viruses. The company accepts no liability for any damage caused
by any virus transmitted by this email.

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/5b54c2d1-6f85-4eac-a6b6-7cd851027925%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Nas-Adora Mohd-Dan

unread,
Oct 21, 2015, 8:58:11 PM10/21/15
to suppor...@runmyprocess.com
Hi Pankaj,

The issue has been solved. I just uploaded the new data in the collection. Any ideas why it is fine after i uploaded the new data?

Thanks and regards,

NAS ADORA BINTI MOHD DAN
MYIS Department | IT APPLICATION SPECIALIST
LAFARGE MALAYSIA | 2, Jalan Kilang, Petaling Jaya
Office:  (603) 7962 3569 I Fax : (603) 77851453



=================================================
                                     Safety Our Way of Life
                            Keselamatan Amalan Hidup Kita
=================================================
Disclaimer:

By communicating with Lafarge Malaysia, you are deemed to have consented to processing of your personal data as set out in the Lafarge Malaysia Privacy Notice which can be viewed here.

This email and any files transmitted with it are confidential and intended only for the use of the person to whom it is addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any files for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/a7DbfcJ0BS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

=================================================
                                     Safety Our Way of Life
                            Keselamatan Amalan Hidup Kita
=================================================
Disclaimer:

By communicating with Lafarge Malaysia, you are deemed to have consented to processing of your personal data as set out in the Lafarge Malaysia Privacy Notice which can be viewed here.

Pankaj Kumar

unread,
Oct 22, 2015, 6:36:24 AM10/22/15
to Fujitsu RunMyProcess Developer Community
Hi Nas,

The error was coming due to entries array coming empty from the query you are making on the collection., Since you have populated the collection again due to which this error might get resolved.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

Reply all
Reply to author
Forward
0 new messages