cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
diegoadum
Advocate V
Advocate V

I'm getting a complete blank record when runs this Collect sentence

Hi there, as the title said, I'm getting a blank record every time I run the below sentence:

 

Collect(
OrdersDetail;
{
'od e Doc #': Value(vNextNumber);
'od e Doc Type': "SS";
'BI_Line Number': 0;
'Transaction date': vTransactionDate;
'Item #': cb_SelectItem.Selected.'Item #';
'Unit price': vUnitPrice;
'Next Status': "005";
'Last Status': "";
'Unit of Measure': First(
Filter(
Prices;
'Item #' = cb_SelectItem.Selected.'Item #'
)
).'Unit of Measure';
Quantity: Value(ti_Quantity.Text);
'Qty Shipped': Value(ti_Quantity.Text);
'Qty Backorder': 0;
'Extended Price': Value(ti_Quantity.Text) * vUnitPrice;
'Invoice #': 0;
'Invoice Type': "";
dwflag: 0
}
)


BTW, this used to work super, but after changing the language of my browser to Spanish, I started to get this result.


Blank recordBlank record

1 REPLY 1
Drrickryp
Super User
Super User

Hi @diegoadum 

I don't see an obvious error in your formula.  It may be tedious but I would try to troubleshoot it by collecting the entire datasource directly and then use the AddColumns() and RenameColumns() functions to reshape your collection until you get exactly the result you want. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-shaping

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,864)