Comments (7)
We will take a look at the test. Irrespective of the test, you should still be able to use the tool and deploy to your Production instance.
from custommetadataloader.
As per Null pointer Exception in test classes when installing the Custom Metadata Loader, the problem is in MDWrapperWebServiceMock. It needs to return a MetadataService.upsertMetadataResponse_element
.
I'll see if I can create a pull request to fix this.
from custommetadataloader.
Hi, @FishOfPrey! I'm running in to this error, too. Looks like there's a patch above, but I'm a bit of a noob and I'm not sure how I go about adding this to the SFDC org. Can you please provide some instructions? Thanks!
from custommetadataloader.
Thank you for taking a look!
I don't believe that to be the case (deploying to Production despite this error). When using the Deploy tool (https://githubsfdeploy.herokuapp.com) to our Production environment, I got the following error displayed. This didn't happen on our Sandboxes as those aren't executing test code by default during deployments.
Let me know if you need any other information. Happy to be a guinea pig to help you resolve!
Status: InProgress
Status: Completed
Deployment CompleteTest failure, method: CustomMetadataUploadControllerTest.testCreateCustomMetadata -- System.NullPointerException: Attempt to de-reference a null object stack Class.MetadataService.MetadataPort.upsertMetadata: line 9274, column 1
Class.MetadataUtil.upsertMetadataAndValidate: line 131, column 1
Class.MetadataUtil.transformToCustomMetadataAndCreateUpdate: line 97, column 1
Class.CustomMetadataUploadController.importCSVFileAndCreateUpdateCmdRecords: line 127, column 1
Class.CustomMetadataUploadController.upsertCustomMetadata: line 52, column 1
Class.CustomMetadataUploadControllerTest.testCreateCustomMetadata: line 44, column 1Test failure, method: CustomMetadataUploadControllerTest.testCreateCustomMetadataWithDevName -- System.NullPointerException: Attempt to de-reference a null object stack Class.MetadataService.MetadataPort.upsertMetadata: line 9274, column 1
Class.MetadataUtil.upsertMetadataAndValidate: line 131, column 1
Class.MetadataUtil.transformToCustomMetadataAndCreateUpdate: line 97, column 1
Class.CustomMetadataUploadController.importCSVFileAndCreateUpdateCmdRecords: line 127, column 1
Class.CustomMetadataUploadController.upsertCustomMetadata: line 52, column 1
Class.CustomMetadataUploadControllerTest.testCreateCustomMetadataWithDevName: line 54, column 1
from custommetadataloader.
Same error as above.
I tested deploying via the deploy to salesforce button as well as via workbench.
If I set to run local tests I get the same error as above.
If i specify a single local test to run that is not part of this repo, I get code coverage error.
I suppose I could deploy to sandbox and then move to prod via change set, excluding the tests that are causing errors, but would be great if this could be resolved.
from custommetadataloader.
Thanks, @FishOfPrey !
from custommetadataloader.
This Kind of Error is shown when I am Inserting the records using custom metadata type loader
Kindly Assist me.
Error: An error has occurred while saving dataAttempt to de-reference a null object---116
from custommetadataloader.
Related Issues (20)
- Error occured processing component CMDT.XXX.Email: invalid email address: XX (INVALID_EMAIL_ADDRESS)
- Error while deploying in production HOT 2
- [Bug] DeveloperName disregarded when Label also present in file.
- [Bug] Tool allows mulitple Separator Types in a single file
- [Bug] Tool does not parse BOM properly HOT 1
- [Bug] Returned vlaues go over visualforce heap size limit HOT 1
- Error deploying package
- How to delete this tool from sandbox ? HOT 1
- Parsing Error HOT 3
- IO Exception: Exceeded max size limit of 6000000 HOT 4
- INVALID_OPERATION: rollbackOnError option must be true on a production org
- The number of field values does not match the number of header fields on line2 HOT 5
- Web service callout failed: WebService returned a SOAP Fault: 'Tier 2' is not valid for the type HOT 1
- Error when loading a relationship field HOT 1
- Remote Site Settings Issue HOT 6
- Field XX in account is not available in this org due to insufficient privileges
- Web service callout failed: WebService returned a SOAP Fault: Cannot flip on commit allowed, disabled by:Commit Not Allowed By DBContext:Protect.Apex.Transaction.Contract HOT 1
- Getting Field Header error when they match, even with Sample csv HOT 3
- Web service callout failed: WebService returned a SOAP Fault: Only the following configurations are supported : 1) if the type is mentioned i.g. type="xsi:boolean" 2) With metadata CRUD API with fullName required faultcode=soapenv:Client faultactor=
- An error has occurred while saving dataAttempt to de-reference a null object---117
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custommetadataloader.