cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

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
Highlighted
Super User III
Super User III

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

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,558)