Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

(0) ShareShare
ReportReport
Posted on by 264

HELP, I have been perplexing over this simple step in my FLOW and i need to make this work ..

 

1. i have a trigger :  When a file in created in SharePoint (the expected created file is an excel file)

2. Get Rows in Excel , then For each row in the Excel file  I  need to create a Record in Common Data Source Entity

3. All fields in the CDS entity are available in the Excel file (as i have used Export Template to Excel from the custom CDS entity)

4. For non-Numeric fields in my CDS entity, i can dynamically match them to the input Excel file's columns

5. However for NUMERIC fields in CDS entity, nothing shows up for me to choose for dynamically updating the CDS numeric field . (i.e. the Get Rows outputs is not even displayed ! )

 

Flow No matching format from Excel table to update CDS field.JPG

  • JenVitug Profile Picture
    JenVitug 264 on at
    Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

    hi @v-xida-msft,

    I have tried your recommended step to create expression to extract the excel numeric fields to update my CDS Entity numeric field

     

    It only worked for 1 column,  the rest of the excel numeric columns when used in the function  INT 

    example 

    Int(items('Apply_to_each')?['YTDActuals'])
     
    returns to me this runtime error : 
     InvalidTemplate. Unable to process template language expressions in action 'Create_a_new_record' inputs at line '1' and column '2353': 'The template language function 'INT' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
    this is my excel file 
     
    i'd like to send you a sample row from my excel file:
     
     
  • JenVitug Profile Picture
    JenVitug 264 on at
    Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

    @v-xida-msft  I will try your workaround to extract the number column from the excel Get Rows using your expression and get back to you . thanks in advance.

  • v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

    Hi @JenVitug,

     

    Could you please expand the "List rows present in a table" action within your flow?

    Do you use the "List rows present in table" action to retrieve rows from the new file created in your SharePoint library (use the "When a file is created in a folder" trigger to detect)?

    Further, could you please show a bit more about your Excel file?

     

    If you use the "List rows present in table" action to retrieve rows from the new file created in your SharePoint library (use the "When a file is created in a folder" trigger to detect), I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    Specifying a file dynamically is not supported in the "List rows present in table" action of Excel Online (Business) connector, you could only specify the file through File Browser.

     

    I have made a test and the issue is confirmed on my side. If you could dynamically match Excel file's columns within the other non-Numeric fields of the "Create a new record" action, you could take a try with the following formula to reference the Number column in your Excel file:

     

    item()?['NumberColumnNameOfYourExcelFile']

     

    I have made a test on my side and please take a try with the following workaround:2.JPG

    Note: The Amount column is a Number type field in my CDS entity. on your side, you should type the following formula within the Number field (YTD Actuals field):

     

    int(item()?['YTD Actuals'])

    The value you get from your Excel table is text value, you should convert the text value into number value to match the Number field of your CDS Entity as above formula. 

     

     

     

    More details about using expression in flow actions, please check the following article:

    Use expression in flow actions

     

     

     

    Best regards,

    Kris

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics