You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/component-framework/issues-and-workarounds.md
+44-44Lines changed: 44 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -16,43 +16,43 @@ ms.topic: "article"
16
16
17
17
Here are some common issues that you might come across while using the Power Apps component framework and Power Apps CLI.
18
18
19
-
1.**Msbuild error MSB4036**
19
+
## Msbuild error MSB4036
20
20
21
-
- The name of the task in the project file is same as the name of the task class.
22
-
- The task class is public and implements the Microsoft.Build.Framework.ITask interface.
23
-
- The task is correctly declared with *\<UsingTask>* in the project file or in the *.tasks files located in the path directory.
21
+
- The name of the task in the project file is same as the name of the task class.
22
+
- The task class is public and implements the Microsoft.Build.Framework.ITask interface.
23
+
- The task is correctly declared with *\<UsingTask>* in the project file or in the *.tasks files located in the path directory.
24
24
25
-
**Workaround**:
25
+
**Workaround**:
26
26
27
-
- Open Visual Studio Installer.
28
-
- For Visual Studio 2017, select **Modify**.
29
-
- Select **Individual Components**.
30
-
- Under Code Tools, check **NuGet targets & Build Tasks**.
27
+
- Open Visual Studio Installer.
28
+
- For Visual Studio 2017, select **Modify**.
29
+
- Select **Individual Components**.
30
+
- Under Code Tools, check **NuGet targets & Build Tasks**.
31
31
32
32
> [!NOTE]
33
33
> We will be constantly adding common issues and workarounds as we come across during the development process. If you encounter an issue and have a workaround and you think that is helpful, raise the issue [here](https://powerusers.microsoft.com/t5/Power-Apps-Component-Framework/bd-p/pa_component_framework) or raise a pull request so that we can review and add it to the list.
34
34
35
-
2.**Publisher Prefix**
35
+
## Publisher Prefix
36
36
37
-
If a component is created using the CLI version lower than 0.4.3, you will encounter an error while trying to reimport the solution file into Common Data Service.
37
+
If a component is created using the CLI version lower than 0.4.3, you will encounter an error while trying to reimport the solution file into Common Data Service.
38
38
39
-
**Workaround**:
39
+
**Workaround**:
40
40
41
-
- Delete the solution containing the relevant component from Common Data Service.
42
-
- The component needs to be removed from the filed or grid if the component is already configured to avoid dependencies.
43
-
- Import the new solution with updates to the component built by the latest CLI version.
44
-
- Newly imported components can now be configured on forms or grids.
41
+
- Delete the solution containing the relevant component from Common Data Service.
42
+
- The component needs to be removed from the filed or grid if the component is already configured to avoid dependencies.
43
+
- Import the new solution with updates to the component built by the latest CLI version.
44
+
- Newly imported components can now be configured on forms or grids.
45
45
46
-
3.**Issues while updating existing code components**
46
+
## Issues while updating existing code components
47
47
48
-
- If you get a 1ES notification asking how pcf-scripts are being used, note that these scripts are only used to build the code components but they are not bundled or used by the resulting component.
49
-
- If you have created a code component using the CLI version 0.1.817.1 or earlier and want to ensure that the latest build and debug modules are being used, make the updates to the `package.json` file as shown below:
48
+
- If you get a 1ES notification asking how pcf-scripts are being used, note that these scripts are only used to build the code components but they are not bundled or used by the resulting component.
49
+
- If you have created a code component using the CLI version 0.1.817.1 or earlier and want to ensure that the latest build and debug modules are being used, make the updates to the `package.json` file as shown below:
3. Error **Failed to retrieve information about Microsoft.PowerApps.MSBuild.Pcf from remote source <Feed Url>** when the build fails for authorization issues.
55
+
##Error: Failed to retrieve information about Microsoft.PowerApps.MSBuild.Pcf from remote source <FeedUrl> when the build fails for authorization issues.
56
56
57
57
**Workaround**
58
58
@@ -74,40 +74,40 @@ Here are some common issues that you might come across while using the Power App
74
74
</configuration>
75
75
```
76
76
77
-
4. **Web resource size is too big**
77
+
## Web resource size is too big
78
78
79
-
Error **Import Solution Failed: Web resource content size is too big**.
79
+
Error **Import Solution Failed: Web resource content size is too big**.
80
80
81
-
**Workaround**
81
+
**Workaround**
82
82
83
-
- When you're creating the `bundle.js` file from the CLI tooling, it bundles lot of components which makes the file large. Remove some of the components that are not necessary.
84
-
- Build the component in `production` mode by modifying the `node_modules/pcf-scripts/webpackconfig.js` file.
83
+
- When you're creating the `bundle.js` file from the CLI tooling, it bundles lot of components which makes the file large. Remove some of the components that are not necessary.
84
+
- Build the component in `production` mode by modifying the `node_modules/pcf-scripts/webpackconfig.js` file.
85
85
86
-
5. **Power Apps component framework Datasets getValue by property alias doesn't work**
86
+
## Power Apps component framework Datasets getValue by property alias doesn't work
87
87
88
-
Power Apps component framework dataset APIs getValue function only searches record by the dataset column name and not the property alias set in the manifest. Attempting to get value by property alias will return an empty value.
88
+
Power Apps component framework dataset APIs getValue function only searches record by the dataset column name and not the property alias set in the manifest. Attempting to get value by property alias will return an empty value.
89
89
90
-
**Workaround**
90
+
**Workaround**
91
91
92
-
Use the dataset column name (component can get the dataset column name by searching the column array using the alias).
92
+
Use the dataset column name (component can get the dataset column name by searching the column array using the alias).
93
93
94
-
***Expected Behavior***
94
+
***Expected Behavior***
95
95
96
-
```TypeScript
97
-
long = dataSet.records[currentRecordId].getValue("Longitude") //based on property set in manifest"-122.3514661"
98
-
```
96
+
```TypeScript
97
+
long = dataSet.records[currentRecordId].getValue("Longitude") //based on property set in manifest"-122.3514661"
98
+
```
99
99
100
-
***Current Workaround***
100
+
***Current Workaround***
101
101
102
-
```TypeScript
103
-
lat = dataSet.records[currentRecordId].getValue("Address_x0020_1_x003a__x0020_Latitude")//based on the dataset column name
104
-
```
102
+
```TypeScript
103
+
lat=dataSet.records[currentRecordId].getValue("Address_x0020_1_x003a__x0020_Latitude")//based on the dataset column name
## Power Apps component framework Datasets SharePoint issue
107
107
108
-
Power Apps component framework dataset component currently does not properly show the records from SharePoint. While the network request will succeed with the correct data records returned, the deserialization fails and an empty dataset is returned.
108
+
Power Apps component framework dataset component currently does not properly show the records from SharePoint. While the network request will succeed with the correct data records returned, the deserialization fails and an empty dataset is returned.
109
109
110
-
**Workaround**
110
+
**Workaround**
111
111
112
-
No workaround as of now. We are working on pushing a fix to our deployment trains.
112
+
No workaround as of now. We are working on pushing a fix to our deployment trains.
0 commit comments