Powershell get-azureSqlDatabse InternalError \ task cancelled
Hi,
I am using powershell to connect, and administrate, the SqlDatabases on a server which had been working without problem but now I am unable to connect.
E.g. with cmdlet (Get-AzureSqlDatabase "servername") I'd expect to get databases but I am getting an internal error and lately a task cancelled error message.
It returns Client Session Id and Client Request Id, but darned if I know what to do with those - i.e. I have no idea how to understand the error and fix what ever, assumedly, that I am doing wrong.
I have checked that I have a current subscription; also I can connect to the server and its databases via TFS; just that it no longer likes my powershell.
I have also tried to re-do the credentials, but to no avail.
... any ideas as to how I can proceed?
Initial error message:
> $dbs = get-azureSqlDatabase "..."
WARNING: Request Id: 'ff19a567aeae6f6ea6925fc102a353ca'
get-azureSqlDatabase : InternalError: The server encountered an internal error. Please retry the request.
At line:1 char:8
+ $dbs = get-azureSqlDatabase "..."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureSqlDatabase], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.GetAzureSqlDatabase
Subsequent error message:
>$dbs = get-azureSqlDatabase "..."
WARNING: Client Session Id: '60d930e5-ba1a-449d-aa70-ce2896a7e8a2-2015-01-13 15:04:39Z'
WARNING: Client Request Id: '1afcf9e5-d692-4b34-9f2e-fb67c5237191-2015-01-13 15:04:42Z'
get-azureSqlDatabase : A task was canceled.
At line:1 char:8
+ $dbs = get-azureSqlDatabase "...."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureSqlDatabase], TaskCanceledException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.GetAzureSqlDatabase
n.b. My subscription does not allow me to raise a technical support (which, not surprisingly, is where Billing point me to).
n.b.b. Have further tried:
Creating a new server and database - no go.
Running get-AzureSqlDatabaseServer; this works, demonstrating that powershell can connect to the server I'm trying to call.
Explicitly setting the parameters, e.g. Get-AzureSqlDatabase -ServerName
Explicitly listing a databse, e.g. Get-AzureSqlDatabase -servername .... -databaseName ....
Same problem for both.
n.b.b.b. Hah!
Using -connectionContext (after creating the connectionContext by server name with cert auth, which required supplying the user name and password).
None the less I would still like to know what is wrong with trying to connect with -servername (and credentials file).
Also, far as I can see, the connectionContext shows a popup... which for scripts is not quite what I want. Long and short seems to be that with powershell I am better off working through the .Net assmeblies which is a pity as I'd rather be
using all them cmdLets that are provided.
Thanks for looking into this
Explict calling of the server name without quotes:
> get-azureSqlDatabase -ServerName ??????
WARNING: Request Id: '508096ab797a631db6f5460cf46c4a26'
get-azureSqlDatabase : InternalError: The server encountered an internal error. Please retry the request.
At line:1 char:1
+ get-azureSqlDatabase -ServerName ???????
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureSqlDatabase], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.GetAzureSqlDatabase
n.b. Righty-O, something a little on the odd side.
I tested with the New-AzureSqlDatabase cmdlet which appeared to have failed:
> New-AzureSqlDatabase -ServerName ?????? -DatabaseName TestANew -Edition Basic
WARNING: Request Id: 'e23664b3233e640585b505d0afa953f1'
New-AzureSqlDatabase : InternalError: The server encountered an internal error. Please retry the request.
At line:1 char:1
+ New-AzureSqlDatabase -ServerName ????? -DatabaseName TestANew -Edition Basi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureSqlDatabase], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.NewAzureSqlDatabase
As such, I though it had just failed but when I looked, later on, the database had actually been created!!! grrrhhhh....
(would put picture but I have to be validated or something).
Similar Messages
-
Hi,
In addition to previous, you can create a start method from non-window
class, which is going to be your main task, which would start your
windows and non-windows tasks, so if you close one of the windows it will
not affect rest of tasks. So far it works for me very well.
Hope this helps.
Dariusz Rakowicz
programmer analyst
Indus Consultancy Services
[email protected]
From: owner-forte-users
Sent: Thursday, September 18, 1997 3:32 PM
To: 'forte-users'
Subject: RE: task cancellation
Hi,
Task cancellation is a very neat way of exiting cleanly. Infact you can
set the EnableSystemCancel of the TaskHandle class to FALSE, if you don't
want to be cancelled in certain portions of the code. But you should make
sure you reset it to TRUE.
One complexity that gets added is maintaining a list of
EventRegistration and TaskDesc objects for each of the tasks that you
have started and registering and deregistering for the task completion
event registrations dynamically. But it is definitely worth the effort.
Inderjyot Singh
Indus Consultancy Services
201-261-3100 x232
[email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Thursday, September 18, 1997 11:20 AM
To: AID9F21
Cc: forte-users
Subject:
Mark,
In the started long-running task, you can catch the CancelException and
do
nothing with it.
For example,
EXCEPTION
when e:CancelException do
// do nothing
From Forte Help:Fort? raises an exception of the CancelException class primarily by
invoking the SetCancel method of the TaskDesc class. A task within an
application can signal another task within the same application to cancel
itself. In a few cases the system generates the signal.
For further discussion, see Using CancelException.
Hope this helps,
Dustin Breese
BSG Alliance/IT
Mark Nichols Wrote:
From: "MARK NICHOLS" <[email protected]>
Date: 18 Sep 1997 08:29:08 GMT
Subject: Asychronous tasks
I have a window that starts a number of asychronous tasks. One of
these tasks in particular can take a long time (1-2 minutes) to complete
depending on the current data in the workflow. If the user closes the
window before this tasks completes I get the following message:
USER ERROR: The Shutdown event was post on the task. The task is
not registered for the event and is therefore cancelled.
I have put taskDesc objects on all the asychronously started tasks and in
the task.Shutdown event of the window I, after checking to make sure
the handle isn't NIL, issue a
taskDesc.PostShutdown(SH_TP_TASKANDCHILDREN). This seemed to
clear up the problem.
However this window is called from a higher level menu in the
application. When control is returned to this higher window and the user
closes it, they same shutdown error occurs. I have tried capturing the
task handle of the called window and issuing the PostShutdown there
also, but with no luck.
What am I missing?
TIA,
Mark Nicholsputabirdonit72 wrote:
Would like to cancel my account. I can't seem to do it. Please help.
https://support.skype.com/en/faq/FA142/can-i-delete-my-skype-account?q=Cancel+account
TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
I recommend that you always run the latest Skype version: Windows & Mac
If my advice helped to fix your issue please mark it as a solution to help others.
Please note that I generally don't respond to unsolicited Private Messages. Thank you. -
We are getting sharepoint 2013 designer workflow task cancellation only for a specific sharepoint user. Its working for other users.
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadHi Amit,
Based on the error message, I recommend to check if the user with issue has user profile generated in User Profile Service Application.
Please also check the ULS log for detailed error message and a screenshot of the workflow steps for further research.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Get User Prompt with cancel show always
Hi!
ZCM 10.3.3. Is there a way to get User Prompt with cancel option show always when this bundle is in action, not only limited time?
More thanks, Alar.Originally Posted by NovAlf
Hi and thanks Thomas!
Well, I wonder, why they have limited this so. Anyway. My problem is that I have to shutdown machines every night, some in computer rooms, some in offices. Don't want 150+ machines working all night for nothing. But, there is a little problem. I have some tasks running at user logoff, as we know, when shutdown process is initiated we don't' know ZEN can make all those logoff tasks completed. So, before shutdown I have to logoff and then after some time cap shutdown. Also, I must have dialog for users who actually is logged in to cancel this process. So, I have within one bundle logoff and shutdown actions which should work when user is logged in or not. Easier is to offer for users just one dialog to cancel this process, in my case I have to do this twice. Also, I have to run this bundle on WXP and W7 machines, well, not the same bundle.
More thanks, Alar.
Take a look at this open source software: About - shutdownguard - Some info - Prevent Windows from shutting down - Google Project Hosting
You could modify the source code to make it work as you wish :)
Thomas -
How to get current viewed task
For an external synchronization requirement I need to maintain or be able to retrieve the current viewed task by a user. I'm hopeful that this has been solved before. Does anyone have any insight there? I'm considering setting up a table to maintain the current viewed taskid for the user, but even that is proving challenging with my lack of ADF exposure. I see the 'TaskSelectedEvent' in the wizard generated task form I'm using but I'm not sure how I might leverage that.
Any help is appreciated.Yes. there is no API to get the current task.
Try this:
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("wi_id");
But i still say a bit confused with your requirement.
The task id gets created only upon creation of a task. And you want this current task id in the BPM Process context? How is it possible unless and until some action takes place and the data is passed from WDJ to BPM Context?
Please clear my doubt. -
m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help
Hi,
Here's an article for that:
http://support.apple.com/kb/ts1901 -
Could not get stream for task attachment
When uploading Document and Trying to view documents in Worklits we get the following error:
<Error> <oracle.soa.services.workflow.worklist> <BEA-000000> <<oracle.bpel.services.workflow.worklist.servlet.ADFAttachmentHelper.getTaskAttachment>
Could not get stream for task attachment:
This seem to have been a bug on previous versions of Oracle BPM but we're receiving it on 11.1.1.7
Any idea what might be causing this?
someone that experienced a similar issue but was resolved bu applying a patch
ID 1453480 - someone that experienced a similar issue but was resolved bu applying a patch
ThanksComplete restart of the environment solved issue
-
Trying 2 download new version of Firefox and after being prompted 2 drag Firefox icon into Applications folder, get message that task can't b completed bc Firefox is in use, but only use am making of Firefox is 2 have it open 2 download new version
If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
* Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
* http://kb.mozillazine.org/Profile_folder_-_Firefox -
Trying to download newest version and after prompted to drag the Firefox icon into the Applications folder get message that task can't be completed bc Firefox is in use, but only use I'm making of Firefox is to have it open to download the newest version.
If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
* Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
* http://kb.mozillazine.org/Profile_folder_-_Firefox -
How to get running Daqmx task handles
HI,
We are creating a TestStand module using CVI 8.5, in that module we have to close all the running Daqmx tasks, please provide help on how to get running Daqmx task handles. We could not find any API function which can return list of running Daqmx task handles so that we can close one by one.
Thanks in advance for the helpI just had a similar issue. Stumbled on this forum in the hopes of getting an answer and found no reply to the original message. I think this is what we are both looking for DAQmxGetSysTasks.
I havent used it yet. Still in the excited I found something stage. -
Get id to task in Sharepoint Designer workflow 2013
Hi
I am using 'Approval Process Action'. The workflow assigns approval task to several approvers. And it creats multiple tasks for that. When I use current task: ID variable, I can only get the latest task ID. How to get task ID for each
approver.
Said WAHIDHi,
Where did you use the task ID? You can use a log(Log Current Task: ID to the workflow history list) to check the value of the task ID.
You can take the steps below:
1.Click on 'Approval(*)' to edit the task process.
2.Then click on 'Change the behavior of a single task'.
3.In the “When a Task is Pending” section, add a log action to check the value of the task ID.(Log Current Task: ID to the workflow history list)
4.Publish the workflow
5.Then you can check the values of the task ID via Workflow History list.
If you have any problems, please feel free to let me know.
Best Regards,
Lisa Chen -
Customize a task cancellation message
I want to customize a task cancellation message rather than the default one "A task was canceled".
My code:
static void Main(string[] args)
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
CancellationToken token = cancellationTokenSource.Token;
Task task = Task.Run(() =>
while (!token.IsCancellationRequested)
Console.Write('*');
Thread.Sleep(1000);
}, token).ContinueWith((t)=>
t.Exception.Handle((e)=>true);
Console.WriteLine("You have canceled the task");
}, TaskContinuationOptions.OnlyOnCanceled);
//token.ThrowIfCancellationRequested();
try
Console.WriteLine("Press enter to stop the task");
Console.ReadLine();
cancellationTokenSource.Cancel();
//task.Wait();
catch (AggregateException e)
Console.WriteLine(e.InnerExceptions[0].Message);
Console.WriteLine("Press enter to end the application");
Console.ReadLine();
The expected task cancellation message is
You have canceled the task
My code is not generating it, thanks for help.My code? You mean your code. The reason why the "Press enter to end the application" appears before the "You have canceled the task" has nothing do with the fact that the ContinueWith method was never executed which was your original
question/issue.
You must wait for the task to complete execution by calling its Wait method before you terminate the application:
static void Main(string[] args) {
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
CancellationToken token = cancellationTokenSource.Token;
Task task = Task.Run(() =>
while (true) {
token.ThrowIfCancellationRequested();
Console.Write('*');
Thread.Sleep(1000);
}, token).ContinueWith((t) =>
Console.WriteLine("You have canceled the task");
}, TaskContinuationOptions.OnlyOnCanceled);
//token.ThrowIfCancellationRequested();
try {
Console.WriteLine("Press enter to stop the task");
Console.ReadLine();
cancellationTokenSource.Cancel();
//task.Wait();
catch (AggregateException e) {
Console.WriteLine(e.InnerExceptions[0].Message);
task.Wait();
Console.WriteLine("Press enter to end the application");
Console.ReadLine();
Please remember to close the thread by marking all helpful posts as answer. -
When trying to logout, I keep getting "the application safari canceled logout" even though I am not in Safari. This only recently started happening and I'm wondering if it is a setting issue or bug. Can someone tell me what to do?
You don't have to be "in" Safari for it to cancel logout.
You have several different Applications open, and any one of them may cancel logout if conditions are just right.
Quit the Applications you are no longer using and your Mac will run better and faster. And it will logout instead of cancelling. -
What Keys to press to get Windows 7 Task Manager on MacBook Pro ?
What Keys to press to get Windows 7 Task Manager on MacBook Pro ?
Thanks for the help. I got the Task Manager thru the taskbar, but I was and still am trying to it by key entry because that is what I am used to. My MBP has a delete key, unlike other keystroke attempt that I have
tried where a delete key isn't on a Mac. I also am a retired enggggineeeer so there's bound to be confusion because I am left-handed too.
Thanks again !!!!
Macbook Pro, Mac OS X (10.6.7), 15", 2.4 GHZ Core Duo 5 CPU, 4 GB RAM, 200 GB Hard Disk; iPhone 4 -
Query to get Project Sub tasks,sub sub tasks
Hi,
Can any one here please help me with the query to get all the tasks(sub task,sub sub task etc) for a given project.
Many Thanks in Advance
KamalClick the "fx" button to show the "Define Workflow Lookup" dialog box. In the "Data Source", select
"Project Data" and in the field, select "Project Name".
kashif
Maybe you are looking for
-
XML Datacaching Off doesn't work in IE 7
In Dreamweaver CS3 (which is running Spry1.4), I tried turning off the XML Data caching and set auto-data refresh to say 5 seconds. I then populated a page with the xml data using the Spry Table. I previewed the page in both IE 7 and FF2 (win) and bo
-
How to display JPEG in JSP w/o IMG tag?
I have a working application where a jpeg image is ecoded on the server via a JavaBean. The bean is then forwarded to a JSP, which gets the unique jpeg filename from the bean and displays it with an html <IMG> tag. All's fine and well, but I'd like t
-
I upgraded my laptop windows from 8 to 8.1. Now Internet explorer page is not opening, remained blank, no message. However Google chrome and Mozila is working smoothly without any problem. I un checked protection mode in Security option, but no chang
-
Hi. Does anybody run Oracle Forms 11.1.2 on a Macbook Pro Retina Display? On normal Mac displays we use clientDPI=96 in formsweb.cfg, and text looks ok. But on the the retinas, text looks blurred. Is there any way to make it look better? Thanks in ad
-
Javax.management.AttributeNotFoundException: Attribute is readonly.
Hello, I've received such an Exception: javax.management.AttributeNotFoundException: Attribute is readonly. : com.bea:Name=CTCFuzzyMultiDataSource,Location=ctcdomain,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceParamsBean,Parent