• Klaus Schgaguler
  • NEWBIE
  • 30 Points
  • Member since 2010
  • Up2Go International

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies

Hi,

i am reading a text file from a remote server.

HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndpoint('.../somefile.txt');
Http http = new Http();   
HttpResponse resp = http.send(req); 
String txt = resp.getBody();

The file I am reading is ISO-8859-1 encoded and this can not be changed. By using the code above, chars like ä,ö,ü are not read corectly. Is there a possibility to tell the System that the response is ISO encoded and not UTF-8?

 

Thanks for your help!

I am doing a bulk insert of around 1000 entries.

I have a quite complicated before insert trigger (bulk insert save: no DML and SOQL statements within any loop) which needs around 25 SOQL statements.

Theoretically this should work. But I found out, that the 1000 entries are sliced into parts of 200 each. Therefore the trigger is called 5 times and I am running into the 100 SOQL limit in the last run.

 

Can I force the system to insert all 1000 entries at once? Or is there an other workaround I can use?

I tried to insert a FeedTrackedChange in an APEX Trigger:

 

FeedTrackedChange ftc = new FeedTrackedChange();
...
insert ftc;	

I get the following error: DML operation INSERT not allowed on  FeedTrackedChange.

 

Does that mean I am not allowed to write any FeedTrackedChange from custom triggers or is there a workaround for this task?

 

 

Hi,

i am reading a text file from a remote server.

HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndpoint('.../somefile.txt');
Http http = new Http();   
HttpResponse resp = http.send(req); 
String txt = resp.getBody();

The file I am reading is ISO-8859-1 encoded and this can not be changed. By using the code above, chars like ä,ö,ü are not read corectly. Is there a possibility to tell the System that the response is ISO encoded and not UTF-8?

 

Thanks for your help!

I am doing a bulk insert of around 1000 entries.

I have a quite complicated before insert trigger (bulk insert save: no DML and SOQL statements within any loop) which needs around 25 SOQL statements.

Theoretically this should work. But I found out, that the 1000 entries are sliced into parts of 200 each. Therefore the trigger is called 5 times and I am running into the 100 SOQL limit in the last run.

 

Can I force the system to insert all 1000 entries at once? Or is there an other workaround I can use?

Hello!

 

I am working on a deployment from a dev environment to production. When I do a test deployment of my objects, every one of them comes back with the following failure message:

 

Test_Object__c.Field__c : Entity Test_Object__c not found

 

...the only difference between the errors being the object names and the field names.

 

Well, of course the object can't be found! I'm trying to deploy it! Is there some setting that I'm missing, some setting either in the IDE or in the production environment?

 

Thanks in advance for your help!

I tried to insert a FeedTrackedChange in an APEX Trigger:

 

FeedTrackedChange ftc = new FeedTrackedChange();
...
insert ftc;	

I get the following error: DML operation INSERT not allowed on  FeedTrackedChange.

 

Does that mean I am not allowed to write any FeedTrackedChange from custom triggers or is there a workaround for this task?