web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF Dataset control da...
Power Apps
Unanswered

PCF Dataset control data-set name attribute rename issue

(0) ShareShare
ReportReport
Posted on by 8

Hi All,

 

I have PCF datasets control. Previously the name of the data-set was sampleDataSet (in the manifest file) and then I renamed it to gridDataSet. So it is working fine in test harness but when I import the control in dashboard it throwing an error as the gridDataSet is undefined and it is not found in the context pare meters object.

 

Thanks for any insights.

 

Kind Regards

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @KP93 , 

    Can you give us some more details, how did you proceed when you uploaded the PCF after you changed the name. 

    I suppose there is a problem with the version. Maybe only the patch version was changed, but it should have been changed the major versioon, since the parameter changed.

    I think it would be best un unregister it and even delete the PCF from your environment, and only after that upload the control again.

    Hope this helps!

    Kind regards,

    Diana

  • KP93 Profile Picture
    8 on at

    @DianaBirkelbach 
    I did the following steps

    • Changed the <data-set name="sampleDataSet" name to  <data-set name="gridDataSet"
    • Then incremented the Patch version
    • Pushed using pac push
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @KP93 , 

     

    I suggest that you at least delete the control from the from, and re-register it, and of course publish.

    If you still have problems after that, you could have a look to my blog about pcf versioning :  https://dianabirkelbach.wordpress.com/2020/12/23/all-about-pcf-versioning/

    Hope this helps!

    Kind regards,

    Diana

     

     

  • Bhuvita Sisodiya07 Profile Picture
    78 on at

    @DianaBirkelbach 

    Hey I am also facing the same issue i have my previous control with datasetname sampledataset and i have changed it to some other name and also increases the major version of the control but somehow the control does not behaves properly after deployment and i am not able to delete the control itself from the form also. See the form screenprint 

    datasetrename.PNG
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Bhuvita , 

     

    About the issue about deleting the control from the form, I think is another issue. 

    I've seen this case before: there is no control available anymore in the list. This happens when there is some kind of not allowed char in a manifest. In my case was some ampersand (') in one of my display-name-key or description-key. As soon you fix the manifest, you get the list of controls displayed again, and can delete it.

    Hope this helps!

    Kind regards,

    Diana

  • Bhuvita Sisodiya07 Profile Picture
    78 on at

    Hey Diana,

     

    Thanks for reply .My manifest file looks like below .I could find any trace of such characters. Also i have deployed the PCF solution build using msbuild /p:configuration=Release

     

    <?xml version="1.0" encoding="utf-8"?>
    <manifest>
    <control namespace="ScoringToolMatrix" constructor="ScoringToolMatrix" version="1.0.5" display-name-key="ScoringToolMatrix" description-key="Use this control to manage the Scoring Tool" control-type="standard">
    <data-set name="scoringtoolDataSet" display-name-key="Matrix View" cds-data-set-options="displayCommandBar:true;displayViewSelector:true;displayQuickFindSearch:true">
    </data-set>

    <resources>
    <code path="index.ts" order="1" />
    <css path="css/ScoringToolMatrix.css" order="1" />
    <img path="img/scoringtoolstage.png" />
    <img path="img/snooze.png" />
    <img path="img/deleteblack.png" />
    <img path="img/deletered.png" />
    <img path="img/deletelight.png" />
    <img path="img/confirmgreen.png" />
    <img path="img/confirmgrey.png" />
    </resources>
    <feature-usage>
    <uses-feature name="Device.captureAudio" required="true" />
    <uses-feature name="Device.captureImage" required="true" />
    <uses-feature name="Device.captureVideo" required="true" />
    <uses-feature name="Device.getBarcodeValue" required="true" />
    <uses-feature name="Device.getCurrentPosition" required="true" />
    <uses-feature name="Device.pickFile" required="true" />
    <uses-feature name="Utility" required="true" />
    <uses-feature name="WebAPI" required="true" />
    </feature-usage>
    </control>
    </manifest>

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Bhuvita ,

    This one looks good. But it could be any other PCF that you imported in your environment. I think it must be one of type dataset. I suppose you can still choose controls for the field type PCFs, but you cannot choose any dataset PCF anymore. 

     

    Kind regards,

    Diana

     

  • Bhuvita Sisodiya07 Profile Picture
    78 on at

    Yes i am not able to select any PCF from the list. It throws error. It says

    "An error occurred while adding components..."

     

    Although i have tried one trick i have deployed same solution through pac pcf push --publisher-prefix command with earlier dataset name.After that i was able to see the control on the form.Then removed the control from the form and again deployed the production build solution. So not sure this will be generic if you have already deployed the production build and then change the dataset name then you will be stuck on the form with no way to delete it from your environment

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard