Column with the name Null
Hi,
I have a strange issue. I am calling a stored procedure on a SQL server DB. All is working fine. I define which columns should be displayed in the output. All works fine. When I then run it, an additional column called null appears at the end. I can't work out how to get rid of it.
Anyone had this before?
Thanks
Paul
Hi Paul,
Did you checked your Layout tab for that Table in VC.
if that Colum is not there in the Layout then its not Problem with Desingingthen its Problem with Compiler which your useing for Runtime.
Which Compiler your are working.
Come backwith me again if not solved.
Regards,
Govindu
Similar Messages
-
I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?
I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
Meta data information can be written easily in Bridge in the Meta File Workspace. -
How can I update a Site Column with the content of an array with javascript CSOM?
I'm relative new to Sharepoint 2013, I'm trying to update the content of a Site column with the content of an array, I can retrieve and visualize the content of my site column, the user is able to change and save the necessary part and the changes are
saved into an array, now I have to update the content of the site column with the content of the array, but for some kind of reasons I can't accomplish that, any suggestion/example? This is my code so far to retrieve, visualize the site column and store the
mofication into my array.
<body>
<select id="dropdown" name="dropdown" onchange="optSelect()">
<option value="EngineType_Cylinders">EngineType_Cylinders</option>
<option value="EngineType_EngineCycle">EngineType_EngineCycle</option>
<option value="EngineType_EngineFamily">EngineType_EngineFamily</option>
<option value="EngineType_Euro">EngineType_Euro</option>
<option value="EngineType_FamilyEvolution">EngineType_FamilyEvolution</option>
<option value="EngineType_GasEmissionLevel">EngineType_GasEmissionLevel</option>
<option value="EngineType_Power">EngineType_Power</option>
<option value="EngineType_PowerSupply">EngineType_PowerSupply</option>
<option value="EngineType_Use">EngineType_Use</option>
</select><br />
<textarea id="textareadisplay" rows="25" cols="23"></textarea><br />
<input type ="button" value="Update values" onclick="addItemsToColumns()" />
</body>
My Javascript
$(function () {
SP.SOD.executeOrDelayUntilScriptLoaded(Function.createDelegate(this, function () {
var select = document.getElementById('dropdown').value;
console.log(select);
getSiteColumns(select);
}), 'SP.js');
var fieldChoice;
var choices;
var addFields = [];
var slc;
var clientContext;
function optSelect() {
slc = document.getElementById('dropdown').value;
getSiteColumns(slc);
function getSiteColumns(selection) {
clientContext = SP.ClientContext.get_current();
if (clientContext != undefined && clientContext != null) {
var web = clientContext.get_web();
fieldChoice = clientContext.castTo(web.get_availableFields().getByTitle(selection), SP.FieldChoice);
clientContext.load(this.fieldChoice);
clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));
function OnLoadSuccess(sender, args) {
choices = fieldChoice.get_choices();
var textarea = document.getElementById("textareadisplay");
textarea.value = choices.join("\n");
function OnLoadFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
function addItemsToColumns() {
clientC = SP.ClientContext.get_current();
var arrayForUpdate = $('#textareadisplay').val().split('\n');
fieldChoice.set_item(, arrayForUpdate);
fieldChoice.update();
clientContext.executeQueryAsync(function () { }, function () { });
function OnUpdateSuccess(sender, args) {
var newchoices = fieldChoice.get_choices();
My problem is on the function addItemsToColumns() please help! Thanks in advance.Let's look at your stylesheet -
<style type="text/css">
body {
background-image: url(assets/images/Business%20Men%20In%20Reception%20Col.2.jpg);
background-repeat: no-repeat;
background-color: #003;
margin-left:auto;
margin-right:auto;
position: relative;
width: 960px;
It's a good idea not to use spaces or any punctuation in your filenames when working for the web.
#header {
margin-left:auto;
margin-right:auto;
position: relative;
width: 960px;
#heading {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 36px;
font-style: italic;
font-variant: normal;
margin-left:auto;
margin-right:auto;
There's no need to specify the default values (font-variant:normal) or to specify auto margins for any block element without an explicitly defined width. And wouldn't it make more sense to put the font style on the body tag, where it will inherit into the rest of the page than to restate it as you have done in the next rule?
#bodytext {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 18px;
line-height: 25px;
font-variant: normal;
width: 300px;
#container {
width: 960px;
position: relative;
margin-left:auto;
margin-right:auto;
.rightimg {
float: right;
margin-left: auto;
padding-right: 40px;
#heading #navbar ul li {
padding: 30px;
</style>
Margin-left:auto can't work without knowing what the width of the element is.... Keep your CSS lean and targeted - it will help you to debug your layouts. -
How to fix "Modifying a column with the 'Identity' pattern is not supported"
When doing Code First Migrations my mobile service always errors in the seed method with: 'Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Methodology' for the CreatedAt column. All my
models inherit from EntityData.
// Sample model
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.WindowsAzure.Mobile.Service;
namespace sbp_ctService.Models
public class Methodology : EntityData
public Methodology()
this.Scenarioes = new List<Scenario>();
public string Id { get; set; }
[Required]
[StringLength(50)]
public string EntryMethod { get; set; }
[Required]
[StringLength(50)]
public string TestDirection { get; set; }
[Required]
[StringLength(50)]
public string PassCriteria { get; set; }
[Required]
[StringLength(50)]
public string Dependency { get; set; }
public bool ExtraInfo { get; set; }
public virtual ICollection<Scenario> Scenarioes { get; set; }
And in my Configuration.cs file during an update here's my seed method:
protected override void Seed(sbp_ctService.Models.sbp_ctContext context)
// This method will be called after migrating to the latest version.
context.Methodologies.AddOrUpdate(
m => m.Id,
new Methodology { Id = "Methodology1", EntryMethod = "P/F", PassCriteria = "P/F", Dependency = "None", ExtraInfo = false, TestDirection = "Round" },
new Methodology { Id = "Methodology2", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "Round" },
new Methodology { Id = "Methodology3", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "In/Out" },
new Methodology { Id = "Methodology4", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "Out" }
For some reason on an update the CreatedAt field is created and given a value of null. So of course on an insert/update it will error because CreatedAt is an Identity field.
I've tried to configure the modelBuilder in my context to tell it that CreatedAt is an identity field, but that still doesn't work.
modelBuilder.Entity<Methodology>()
.Property(m => m.CreatedAt)
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
So far the only way to fix this is by commenting out my Seed data, but it's not a fix. I've seen other solutions where you can force it to not serialize certain fields, but I don't know if those solutions apply.So I think this occurs because you might have created the database (Code-first) with POCOs that didn't have the CreatedAt field in them. I think that's what I did and the easiest way to fix it for me was to delete my database and re-create it with my POCOs
inheriting from Entity Data from the very beginning. We were still in development so it worked out for us but I know some people might not be able to do that. Here's what my table looks like after it was created correctly:
USE [database_name]
GO
/****** Object: Table [sbp_ct].[Methodologies] Script Date: 2/24/2015 9:48:45 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [schema_name].[Methodologies] (
[Id] NVARCHAR (128) NOT NULL,
[EntryMethod] NVARCHAR (50) NOT NULL,
[TestDirection] NVARCHAR (50) NOT NULL,
[PassCriteria] NVARCHAR (50) NOT NULL,
[Dependency] NVARCHAR (50) NOT NULL,
[ExtraInfo] BIT NOT NULL,
[Version] ROWVERSION NOT NULL,
[CreatedAt] DATETIMEOFFSET (7) NULL,
[UpdatedAt] DATETIMEOFFSET (7) NULL,
[Deleted] BIT NOT NULL,
[Name] NVARCHAR (MAX) NULL
GO
CREATE CLUSTERED INDEX [IX_CreatedAt]
ON [schema_name].[Methodologies]([CreatedAt] ASC);
GO
ALTER TABLE [schema_name].[Methodologies]
ADD CONSTRAINT [PK_schema_name.Methodologies] PRIMARY KEY NONCLUSTERED ([Id] ASC);
Does yours look something like that? -
We can't add a decimal number column with the create table forms
In the version 4, we can't add a decimal number column with the create table forms.
In the GUI, I found the following column (I translate from french to english): PK, Name, Data_type, lenght, not null, default, comments.
In the lenght field, if I enter 9,3 to have a NUMBER(9,3), I have a message saying that the number must be an integer. -
I am using code fist migration and second time I run the service, I got this error.
"Modifying
a column with the 'Identity'pattern
is not supported. Column:
'CreatedAt'.
context.Cars.AddOrUpdate(c => c.Id,
new Car { Id = "60B0891B-C3CF-41A6-9BE0-BCCCE5949E6B", Image = "ic_highlander", Name = "Highlander", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
new Car { Id = "BAA205B5-C43F-490E-A83B-81F0EBDA2D97", Image = "ic_super_custom", Name = "Super Custom", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
new Car { Id = "DD68E56D-3967-4D32-A959-BEFBCB70FC4B", Image = "ic_mark_ii_grande", Name = "MarkII GRANDE", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
new Car { Id = "8EDDC308-FB63-469B-8A6A-B2360D61892D", Image = "ic_hiace_commuter_13", Name = "Hiace commuter", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "MDL" }Hi,
Thanks for posting here.
We are looking into this and will update you with solution. Stay tuned for details
Girish Prajwl -
Automatically populate custom list column with site name when list is created
Hi All,
I am using a CQWP to display selected contacts on subsites from one master contact list on the parent site. Each subsite is for a different project and is named according to the project number. In the master contact list I have a custom column called Projects
that is populated with the various different project numbers that an individual contact is involved with.
The CQWP on the subsite filters the results based on the Projects column of the master contact list. As it stands I have to manually input this job number into the CQWP's properties. What I would like to happen is for the project number (the subsite name)
to automatically be input to the filter value.
The closet I have come to reaching my desired behaviour is by adding a column to the Site Pages list called Title and setting the filter value to [PageFieldValue:Title]. This still doesn't get the automatic behaviour I require because I still have to input
the project number into the Title column manually, but it is quicker than editing the CQWP properties.
What I need to achieve is either a way of automatically populating this column with the subsite name or find a way for the CQWP to pick up the subsite name and filter its results accordingly.
I have found this article http://www.andrewconnell.com/blog/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering which seems to be along the lines of what I want to achieve, but it is by no means a walk through and while I'm not completely
unfamiliar with coding, I don't know enough to implement it without help.
Any help would be greatly appreciated, I've been working on this for weeks on and off!
Thanks in advance,
DanHi,
I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
kmhsad -
New Column Still Defaulting To Value From Deleted Column With Same Name
This is strange. I had a managed metadata column called "Document Category" attached to multiple content types and set to a default value (different in each library). Then I deleted the column (all instances from libraries and references from
content types as well), and created a new site column with the same name, but a Choice field instead. The libraries that had a default value for the original column, are still populating new documents using the original default value, and it's showing up as
something like 88;#Hospital Correspondence|4b1e8da6-8653-492a-3e45e6c56c38 . The column is still a choice field, so I don't even know why it allows this value. Does anyone know why this is happening or how to fix it?Hi Vince,
Thank you very much for sharing your solution here. It would be helpful for others who encounter similar issue.
Thanks again,
Eric
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]
Eric Tao
TechNet Community Support -
How do I search for a song with the name I typed on my iPhone?
I run into this a lot and it is extremely frustrating. I want to find a song like "Menuetti", but the search results end up with hundreds of variations of "Menuetto". Even though I know Menuetti is there somewhere, I can't find the song I am looking for because there is so much garbage returned. Is there any way to get the iTunes store to return the few songs with the name I asked for rather than the hundreds with the name I did not?
You can choose what it searches and where
-
Hi Apple community!
I have a [rather worrying] problem.
When I try to copy all my files from my documents on my mac [or the entire documents folder] into an external drive, I get this error message
" The operation can’t be completed because an item with the name “.DS_Store” already exists. "
I am not given an option to skip this file or anything else.
But I simply cannot complete the operation!
I have tried deleting a few of the .ds_store files, [both in the original and in the destinations]
but no success.
The same thing keeps happening.
At first, this was just happening when I was trying to backup to my dropbox folder [the one on my mac's harddrive, which gets synced to the cloud],
but then I tried to back up my documents to my external hard drive, and I realized it is giving me the same error message.
So effectively, it seems I cannot backup my files anywhere!
Any help or advice would be greatly appreciated.
Thank you.Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Major headaches with copying files and folders between drives. I constantly (and I mean constantly) have to resort to copying files across in small batches (fewer than 10 works best) because anytime I try to copy lots of files and folders from my mac to an external hard drive (or from one external HD to a second external HD), I ALWAYS get the error message "The operation can't be completed because an item with the name .DS_Store already exists".
The files and folders are all Mac-generated, so hint or trace of foreign OSs in the mix.
All file types are susceptible
the HDs are all Mac OS X formatted, no foreign file formats involved
the HDs are all journal-enabled, OS X extended formats
have looked on here for previous posts, past suggestion was to disable creation of DS_Store files - not really a solution and realistically, defeats the purpose of their creation
any ideas anyone?
would appreciate any thoughts or sugestions, this has got me beat
the context is that I have a lot of image files that I am copying (trying to...) new external 3TB drives for backup and the job appears endless if I have to do this in batches of 10 or so..!
many thanks for any suggestionsThis is definitively a nuisance. When copying large amounts of files between volumes try opening a terminal window and use use ditto. You need to type the directory paths of the source and the destination volume. When it starts ditto just coupes and optionally overwrites anything on the destination. You can get a verbose mode where it lists all activities.
gunnars-mac-mini-i7:Volumes gunnar$ man ditto
NAME
ditto -- copy directory hierarchies, create and extract archives
SYNOPSIS
ditto [-v] [-V] [-X] [<options>] src ... dst_directory
ditto [-v] [-V] [<options>] src_file dst_file
ditto -c [-z | -j | -k] [-v] [-V] [-X] [<options>] src dst_archive
ditto -x [-z | -j | -k] [-v] [-V] [<options>] src_archive ... dst_directory
ditto -h | --help -
After upgrading from 10.7.5 to 10.8.3 I cannot copy certain folders to any external drive. the operation can't be completed because an item with the name .ds_store exists. I have seen this problem in discussions for many years with no real solution. Does anyone have a resolution? Please help. This is very frustrating as I work in two locations and copy folders back in forth all the time.
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Everytime I open Safari on my MacBook Pro a pop-up window from my Finder menu, with the Applications highlighted on the left in the favorites column with the Resources folder highlighted comes up and locks my Safari page until I manually close the Resources window then I have to refresh the internet search address line at the top of Safari. Can someone tell me how to stop this. It started after a software upgrade. It didn’t do that before. Thank you.
A few thoughts for diagnosis/testing purposes:
Have you recently run the disk utility and repaired HD and permissions? If not do so.
Boot into the Safe mode - hold down shift key on boot - and see if the problems are still there. Some functions won't work but see if anything odd happens.
Check your startup items. Get rid of them temporarily.
Create a new user account and see if the problems occur with the new account.
Lastly, be sure your backup is up-to-date. -
Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?
Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
Anything else I could try, or am I doomed!
All of your help is much appreciated, thanks -
Hiding Table Columns with the Spry Element Selector
I am trying to set up a toggle button that will show/hide
rows >1 when clicked. I've used Adobe's
"Hiding
Table Columns with the Spry Element Selector" example and it
worked fine with an HTML list, until I linked to actual XML data.
Now it works in reverse. What gives?
Here's the example:
http://a44.awardspace.com/testing/toggleShowHideRows.htmThat's what I started with. Same result:
http://a44.awardspace.com/testing/toggleShowHideRows.htm
Maybe you are looking for
-
How do I disable all tabs in firefox 4?
I hate tabs! How do I disable them permanently and forever?
-
Tracks out of order and other problems
For one of my albums, the tracks are all out of order. I have edited the information, and the track numbers are proper, but it will not order them correctly. I have even removed the files from Itunes and then added them again--still they do not go in
-
Email distribution options with the Hyperion Workspace Scheduler
Version used: 9.3.1 Hello everybody, We have scheduled several Hyperion Workspace Batches that use an email-bursting list to email out pdf reports to our user community. All of this works fine but the problem is that we have no detailed trace of the
-
How to install Summit Sporting Goods schema???
I have downloaded the sql scripts, but don't know how to install in my server. It will be greatly appreciatied if someone can write down procedure in step by step. Thanks very much in advance. Charles
-
Hi i am modifying my main menu so that the user can just press a number between 1-5 and it will auto launch the corresponding menu ie 1. play 2. options and if the user presses the number 2 key, the options screen appears. My problem is that i have m