cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JomarGF
Helper III
Helper III

For all and stored procedure

Hi all

 

The code below saves only 9 records out of 50 (from collPropAssets) to my SQL table and ignores the rest. Is there a limit on how many times you can trigger SProc?

 

ForAll(
collPropAssets,
spAdd_collPropAssets.Run(
AssetNotes,
AssetActive,
AssetID,
AssetLocation,
AssetLocLevel,
AssetNo,
AssetNoSufx,
AssetTypeDesc,
chkYesNo,
fkAssetCategoryID,
fkAssetTypeID,
fkPropertyID,
intInspResult,
TestingRoutineDesc
)
);

 

Your input is very much appreciated.

 

Jomar

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JamesYumnam
Resolver III
Resolver III

inside For All, the actual addition of these records into the sql table is being done by spAdd_collPropAssets.Run().

If 9 records are being added and the rest of the records are not, it can be because  spAdd_collPropAssets.Run() failed on the 10th record. And this failure could be because, the 10th record is not in correct format or any other SQL related error. So, if you could check running the SProc only for the 10th record and check if it is getting added, you can atleast figure out that the record is in correct format or not.

Please let me know if you need more clarification. 

View solution in original post

5 REPLIES 5
JamesYumnam
Resolver III
Resolver III

Hi @JomarGF if only 9 records are being added from the collection everytime the flow runs, then most probably there could be some issue with the 10th record in the collection. To troubleshoot, please try adding the 10th record only using the SProc and see if it gets added.

Apologies if I was not clear.

 

The collection (collPropAssets) have confirmed 50 records but when I use FOR ALL to save the collection, it only saves 9 records to the table.

 

 

 

If someone can confirm that Stored Procedure can be used inside FOR ALL without any issue? Thank you.

JamesYumnam
Resolver III
Resolver III

inside For All, the actual addition of these records into the sql table is being done by spAdd_collPropAssets.Run().

If 9 records are being added and the rest of the records are not, it can be because  spAdd_collPropAssets.Run() failed on the 10th record. And this failure could be because, the 10th record is not in correct format or any other SQL related error. So, if you could check running the SProc only for the 10th record and check if it is getting added, you can atleast figure out that the record is in correct format or not.

Please let me know if you need more clarification. 

Thanks!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,048)