Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pMNkxP/k0/kAxKyqwrEYse
Power Apps - Power Apps Pro Dev & ISV
Unanswered

PCF Control Question

Like (0) ShareShare
ReportReport
Posted on 11 Jul 2019 15:03:52 by 200

Hi Team,

 

We have developed a PCF control for a single line of text and we use the latest PowerApps Component Framework (Version: 0.2.899.1). We do not get the WebAPI and Utility feature inside context. All values inside context of WebAPI and Utility feature are nulls. We add below lines in ControlManifest.Input.xml  but no success, we get below error while importing the solution as below:

 

<feature-usage>

      <uses-feature name="Utility" required="true" />

     <uses-feature name="WebAPI" required="true" />

</feature-usage>

 

Error: Import Solution Failed: CustomControl with name  failed to import with error: The import manifest file is invalid. XSD validation failed with the following error: 'The import manifest file is invalid. XSD validation failed with the following error: 'The element 'control' has invalid child element 'feature-usage'. List of possible elements expected: 'data-set, built-by, modes, child, type-group, common-property, property, groups, dependencies, property-dependencies, event, subscribed-functionalities, resources, AvailableOn'.'."'."

 

Thank You.

  • Hemant Gaur Profile Picture
    on 20 Aug 2019 at 06:49:11
    Re: PCF Control Question
    Lookup is not supported type for PCF yet. We are evaluating this for.future release .

    Hemant
  • Community Power Platform Member Profile Picture
    on 20 Aug 2019 at 06:15:11
    Re: PCF Control Question

    Hi,

     

    It seems Lookup.Simple is not accepted by PCF cli.

    of-type="Lookup.Simple" 

    I have received the following error:

    [pcf-1014] [Error] Manifest validation error: instance.manifest.control[0].property[0].$.of-type is not one of enum values: Whole.None,TwoOptions,DateAndTime.DateOnly,DateAndTime.DateAndTime,Decimal,Enum,FP,Multiple,Currency,OptionSet,SingleLine.Email,SingleLine.Text,SingleLine.TextArea,SingleLine.URL,SingleLine.Ticker,SingleLine.Phone

     

    Any idea?

     

    Thanks in advance 

  • Greg Hurlman (MSFT) Profile Picture
    on 30 Jul 2019 at 15:20:42
    Re: PCF Control Question

    @sheldoncopper73 It should be resolved now; a fix for the known issue made it everywhere on Friday. If it's still not working for you, can you post the server version, client version, and session ID you have in the environment where it's not working? To find it, open a Unified Interface app, click the gear icon in the upper right next to your name, click About, and copy the information there.

     

    EDIT: One more thing: can you post your current ControlManifest.Input.xml file? If at some point you removed this section, you'll need to put it back.

     

    <feature-usage>
     <uses-feature name="Utility" required="true" />
     <uses-feature name="WebAPI" required="true" />
    </feature-usage>

     

  • Sheldon Copper Profile Picture
    200 on 30 Jul 2019 at 13:12:30
    Re: PCF Control Question

    Hey @GregHurlmanMSFT any updates regarding context bug we checked it today but it is still unresolved.

  • DannyJia Profile Picture
    8 on 24 Jul 2019 at 06:03:31
    Re: PCF Control Question

    Thank you for you quick response, Greg.

    I extracted the zip file, removed apiversion attribute, increased the version number and compressed it to a zip file. After deploying it is working perfectly.

     

    Thanks you again for the workaround.

  • Greg Hurlman (MSFT) Profile Picture
    on 23 Jul 2019 at 15:37:25
    Re: PCF Control Question

    All, I apologize for this -- there was an issue that we had already caught, but had not made it out to all of our production servers yet. The fix should be deployed everywhere on July 27th.

    In the meantime, if you want to work around the issue you can remove the apiVersion attribute from your component's compiled ControlManifest.xml file. Please note that this attribute will need to be in place for production use upon release, but it will work without it for now.

  • DannyJia Profile Picture
    8 on 23 Jul 2019 at 12:52:22
    Re: PCF Control Question

    When do you plan to fix the issue? All my controls are broken and it is really a disaster.

  • Greg Hurlman (MSFT) Profile Picture
    on 20 Jul 2019 at 19:11:23
    Re: PCF Control Question

    @JoCas @sheldoncopper73 I've been able to repro your exact problem, and have created a bug to get the issue resolved; thanks for bringing it to our attention!

  • JoCas Profile Picture
    34 on 20 Jul 2019 at 18:23:03
    Re: PCF Control Question

    Thanks @GregHurlmanMSFT !

  • Greg Hurlman (MSFT) Profile Picture
    on 20 Jul 2019 at 18:22:06
    Re: PCF Control Question

    OK, thanks -- I'm going to try to repro in a matching environment; will follow up.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,662 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard