Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Business connector ,problem

Former Member
0 Likes
861

Guy's

i have one unique problem,in flow step of business

connector ,i have used loop ,for example loop over

"/Final/recordWithNoID",where recordWithNoID contain

multiple records,this loop work's fine if there are

more than one record,but fail when there is single

record,i don't know ,what's the problem

sanju

4 REPLIES 4
Read only

Former Member
0 Likes
824

Hi Sanju,

How you are looping , are you giving any where condition.

can you show your code. and are you sure there is a record when the loop fails.

did you check it in debug mode.

Regards

vijay

Read only

0 Likes
824

in business connector you can write

flow step,which provide in built function like loop,repeat,exit etc,you can select any one of them

and assign a record to it,it will loop over that

record,in debugging i found that loop is getting falied

if there is a single record

Read only

0 Likes
824

show the code....

Regards

vijay

Read only

Former Member
0 Likes
824

Sanju,

Use 'length' service. Find the length of the array and then branch out. 'Default' should be looped at and the second sequence with value = 1 for length, should not be looped.

Best luck,

Datta