Panic: Resource 'ShareTextMessageUnknownEmailService' not defined in 'NinjaTrader.Custom.Resource', but then immediately below that it says message sent successfully? They can't both be true. I never recieved an email or text so I'm assuming the first notification is correct. What are the primary causes of this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Share Service realtime error on Ninja script output
Collapse
X
-
Strategy Share Service realtime error on Ninja script output
The following error message displayed in Ninja script output.
Panic: Resource 'ShareTextMessageUnknownEmailService' not defined in 'NinjaTrader.Custom.Resource', but then immediately below that it says message sent successfully? They can't both be true. I never recieved an email or text so I'm assuming the first notification is correct. What are the primary causes of this?Tags: None
-
Hello RISKYBUSINEZZ,
That hints that at some point when you did an update not all files got updated, the resource that is looking for is a text string which is not present in the files you have. I would suggest doing a full reinstall to correct that. Please use the following steps, this will not remove your personal data.- Exit NinjaTrader
- Use the windows add remove programs menu to uninstall NinjaTrader
- Download the installer from https://account.ninjatrader.com/download
- Install NinjaTrader and try again
-
I uninstalled and did the reinstall as described, but still the error persists. Also, I tried a second time, with a reboot before reinstall. Didn't change the result.
Comment
-
Hello RISKYBUSINEZZ,
It sounds like the custom resources are not being removed during the uninstall, please try the following:- Exit NinjaTrader
- Use the windows add remove programs menu to uninstall NinjaTrader
- Open the folder Documents\NinjaTrader 8\bin\Custom
- Remove all files that start with the name Resource, for example Resource.resx or Resource.de-DE.resx, there are a few files with this naming prefix, remove them all
- Download the latest installer from https://account.ninjatrader.com/download
- Install NinjaTrader and try again
Comment
-
Just to be clear, what about dll's with the name resource in them? I've gone to the folder and do not see really anything that starts with "resource".
Comment
-
Hello RISKYBUSINEZZ,
Yes if you use other than english I would also suggest to remove those as well. The language folders can be removed, those will be reinstalled when you install NinjaTrader. Language folders are in the naming scheme of de-DE or fr-FR. If you only use english removing the .resx files should be sufficient.
I would also suggest after uninstalling NinjaTrader to make sure the C:\Program Files\NinjaTrader 8 has been removed, if it still exists remove that folder as well.
Comment
-
Okay, I tried all of this and still not functional I still get the panic message. I get emails just fine it appears but for some reason the text - to email link seems broken?
Comment
-
Hello RISKYBUSINEZZ,
Are you using 8.1.3.1 when you see that message?
Based on the message name of ShareTextMessageUnknownEmailService I would guess this means that the service name being used was not found.
Please try checking the tools -> options menu and the share services to verify the name of the share service. I see this in the strategy development forum so if this is an email coming from a strategy check the user input or code where the service name is being used and make sure there are no spaces and the name matches the one in the options menu.
Comment
-
8.1.3.1 64-bit
Just a note I managed to get rid of the panic message by modifying the share service to specifically refer to an email address(Before I left this blank thinking it would use the default email address). However, test emails function perfectly. The text messages do not. Nor do emails arrive from my strategy as designed, or as they have done previously.
Comment
-
Hello RISKYBUSINEZZ,
To clarify is the share services specifically a sms/mms share service? If so that should present an error message if you try to configure a share service and do not select an email. The send test mail should work because that targets the email share service direction but does not indicate that the sms/mms service will work as configured.
I would still suggest to verify the name of the service used in the strategies settings or code to make sure it matches the options menu. If the strategy is not sending emails that would indicate it is not targeting the correct share service based on the name of that error message. That would be more likely to be true if you are getting that error each time the strategy tries to send an email as well.
Comment
-
I send something like this on strategy activation. I get no error codes or messages delivered. No messages in email. I've checked the names they match.
Log shows messages sent successfully now, but those are not being received by my email.
This is the calling function:
else if(State == State.Realtime
&& Test_Message == false)
{
Test_Message = true;
Share(@"phone #1",@"The Two Pillars are active " + DateTime.Now);
SendMail("j####@gmail.com", "The Two Pillars are active " + DateTime.Now, "The Two Pillars are active " + DateTime.Now);
}Last edited by RISKYBUSINEZZ; 08-07-2024, 03:49 PM.
Comment
-
Hello RISKYBUSINEZZ,
Please try renaming the share service and also using the Share method for emails.
The name of phone #1 could relate to the problem, I am unsure if the symbol may affect the result. Try naming it something like SmsService and then update the strategy to reflect that.
For the email try using
Share("MyEmailServiceName", "The Two Pillars are active " + DateTime.Now, "The Two Pillars are active " + DateTime.Now);
Comment
-
I appreciate the feedback, I'm not sure the issue is on ninja traders end after all. Gmail or possibly even the apple device itself I believe is filtering out the emails as spam which is ridiculous and annoying. I swapped the email address and things started working again(not very well). I tried setting this up with outlook, but that failed right away. I couldn't even send mms messages to my phone at all, but all regular emails work. So Idk, this functionality would be great if I could rely on it. Unfortunately, it appears that spam filters and other platforms, pretty much make this a useless function. I've tried every way I know of to make this work, short of setting up my own DKIM, SPF, and DMARC.
Ideally, we could have a Ninja trader app, that could notify me... just saying it would be nice.
Comment
-
Hello RISKYBUSINEZZ,
That can happen with most email providers if you are sending very frequent emails or an email that has very similar if not the same text, it may be flagged as smtp spam by the email provider. Not all providers offer email to text services as well, that is dependant on the email provider. Unfortunately there is not a way for NinjaTrader to host this type of service as it could be abused, every customer would be sharing the same smtp service so if one user abused it and sent mass emails that would block the service for all users. To avoid that individual smtp services are used so the service is directly linked with each user to prevent spam emails.
- Likes 1
Comment
-
I wouldn't say I was sending "mass emails" by any means, but it might send out like 50 notifications a day. I did try to send them to a different phone number at one point. It wasn't long after that, things started going haywire and haven't been right since.
Could you provide additional feedback on how individual smtp services function? Do you mean 1 email set up per phone number?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
112 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
60 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
38 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
43 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
79 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment